#ifndef PS3TOMIDI_H
#define PS3TOMIDI_H

#include <QtGui/QMainWindow>
#include "qtimer.h"
#include "ui_ps3tomidi.h"
#include "MidiOutDevice.h"
#include "DeviceManager.h"

class PS3ToMidi : public QMainWindow
{
	Q_OBJECT

public:
	PS3ToMidi(QWidget *parent = 0, Qt::WFlags flags = 0);
	~PS3ToMidi();

public slots: 
	void OnInputDevicesIndexChanged(int index);
	void OnMidiDevicesIndexChanged(int index);
	void axisChanged(int axis, int value);
	void paintEvent(QPaintEvent *e);
	void keyDown(int keyCode);
	void keyUp(int keyCode);
	void inputClockTick();

private:
	MidiOutDevice dev;
	Ui::PS3ToMidiClass ui;
	DeviceManager inDevMgr;
	QTimer inputClock;
};

#endif // PS3TOMIDI_H
